import { defineStore } from 'pinia'

export const useAppStore = defineStore('app-store', {
  state: () => ({
    language: 'zh-CN'
  }),
  actions: {
    setLanguage(newLanguage: string) {
      this.language = newLanguage
    }
  },
  getters: {
    getLanguage: (state) => state.language
  }
})
